package com.trkj.dao.jpa;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.trkj.pojos.YzrMedInstockDet;

public interface IYzrMedInstockDetDAO extends CrudRepository<YzrMedInstockDet, String> {

	@Query("select max(ymid.medInstockDetId) from YzrMedInstockDet ymid where ymid.medInstockDetId like ?1%")
	public String findMaxId(String a);
	
	@Query("select ymid from YzrMedInstockDet ymid where ymid.medRukuId=?1")
	public List<YzrMedInstockDet> findInstockDetById(String instockId);
} 
